<%@ page import="com.techedge.insidetrack.Insidetrack" %>

<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="insidetrack.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" pattern="${insidetrackInstance.constraints.code.matches}" required="" value="${insidetrackInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'schedule', 'error')} required">
	<label for="schedule">
		<g:message code="insidetrack.schedule.label" default="Schedule" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="schedule" precision="day"  value="${insidetrackInstance?.schedule}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'information', 'error')} ">
	<label for="information">
		<g:message code="insidetrack.information.label" default="Information" />
		
	</label>
	<g:textArea name="information" cols="40" rows="5" maxlength="500" value="${insidetrackInstance?.information}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'twitterTag', 'error')} ">
	<label for="twitterTag">
		<g:message code="insidetrack.twitterTag.label" default="Twitter Tag" />
		
	</label>
	<g:textField name="twitterTag" pattern="${insidetrackInstance.constraints.twitterTag.matches}" value="${insidetrackInstance?.twitterTag}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'language', 'error')} ">
	<label for="language">
		<g:message code="insidetrack.language.label" default="Language" />
		
	</label>
	<g:textField name="language" value="${insidetrackInstance?.language}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'locations', 'error')} ">
	<label for="locations">
		<g:message code="insidetrack.locations.label" default="Locations" />
		
	</label>
	<g:select name="locations" from="${com.techedge.insidetrack.Location.list()}" multiple="multiple" optionKey="id" size="5" value="${insidetrackInstance?.locations*.id}" class="many-to-many"/>
</div>


<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'creator', 'error')} required">
	<label for="creator">
		<g:message code="insidetrack.creator.label" default="Creator" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="creator" name="creator.id" from="${com.techedge.insidetrack.User.list()}" optionKey="id" required="" value="${insidetrackInstance?.creator?.id}" class="many-to-one"/>
</div>

<%--<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'attendees', 'error')} ">
	<label for="attendees">
		<g:message code="insidetrack.attendees.label" default="Attendees" />
		
	</label>
	<g:select name="attendees" from="${com.techedge.insidetrack.Attendee.list()}" multiple="multiple" optionKey="id" size="5" value="${insidetrackInstance?.attendees*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: insidetrackInstance, field: 'sessions', 'error')} ">
	<label for="sessions">
		<g:message code="insidetrack.sessions.label" default="Sessions" />
		
	</label>
	<g:select name="sessions" from="${com.techedge.insidetrack.Tracksession.list()}" multiple="multiple" optionKey="id" size="5" value="${insidetrackInstance?.sessions*.id}" class="many-to-many"/>
</div>

--%>